// SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
// SPDX-License-Identifier: Mulan PSL v2
package entity

// 挂载的存储，挂载多个时能用到
type VolumeMount struct {
	ID         string `json:"id,omitempty" gorm:"primarykey"` // user id + name
	NotebookID string `json:"notebookID" gorm:"->;<-:create"`
	IsNew      bool   `json:"new" gorm:"-"`                                                          // use for create pvc
	Name       string `json:"name" gorm:"->;<-:create"`                                              // name of pvc in k8s
	MountPath  string `json:"mountPath" gorm:"->;<-:create"`                                         // mount path of container
	Size       int64  `json:"size" gorm:"type:int(32)" binding:"required,min=1,max=256" example:"2"` //min=1,max=256
}
